package com.smartfactory.sail.controller;

import com.ada.base.common.ControllerResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/process")
public class ProcessController extends ControllerResponse {
//    private TaskRuntime taskRuntime;
//
//    public ProcessController(TaskRuntime taskRuntime) {
//        this.taskRuntime = taskRuntime;
//    }
//
//    @GetMapping("/tasks")
//    public Page<Task> tasks(@RequestParam(required = false, defaultValue = "0") int startIndex, @RequestParam(required = false, defaultValue = "20") int maxItems) {
//        return taskRuntime.tasks(Pageable.of(startIndex, maxItems));
//    }
}
